﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xinkui.Entity.AutoGenerator;

namespace Xinkui.WebModel.Cache.View {
    #region CountryView

    public class CountryView {

        public int CountryId { get; set; }

        public string Name { get; set; }

        public string ShortName { get; set; }

        public string Name_CN { get; set; }

        public int RefID { get; set; }


        public static CountryView Convert(CommonCountry_Entity entity) {
            CountryView view = new CountryView();
            view.CountryId = entity.CountryID;
            view.Name = entity.Name;
            view.Name_CN = entity.Name_CN;
            view.RefID = entity.RefID;
            view.ShortName = entity.ShortName;
            return view;
        }
    }

    #endregion
}
